﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GIS.aspx.cs" Inherits="XMK.Tadong.Web.Views.DataSearch.SearchHead" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title><%: lang.Get("The home page-GIS")%></title>
     <link href="../../weblib/jqueryui-autocomplete/themes/ui-lightness/jquery.ui.all.css"
        rel="stylesheet" type="text/css" />
    <link href="../../weblib/jquery.easyui/themes/default/easyui.css" rel="stylesheet"
        type="text/css" />
    <link href="../../weblib/jquery.easyui/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../webjs/core/config.js" type="text/javascript"></script>
    <script src="../../weblib/jquery/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="../../weblib/jquery/jquery.adaptor.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../weblib/jquery.easyui/jquery.easyui.min.js"></script>
    <script src="../../weblib/jqueryui-autocomplete/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../../weblib/jqueryui-autocomplete/ui/jquery.ui.autocomplete.js" type="text/javascript"></script>
    <script src="../../weblib/jqueryui-autocomplete/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../../weblib/jqueryui-autocomplete/ui/jquery.ui.menu.js" type="text/javascript"></script>
    <script src="../../weblib/jqueryui-autocomplete/ui/jquery.ui.position.js" type="text/javascript"></script>
    <script src="../../webjs/core/index.js" type="text/javascript"></script>
    <script src="../../webjs/core/getTargetTree.js" type="text/javascript"></script>
     <script type="text/javascript">

         var language = $.cookie('_language_');
         if (language == null || language == '') {
             document.write("<script src='../../Language/sys_language/zh.js'><\/script>");
         }
         else if (Number(language) == 1) {
             document.write("<script src='../../Language/sys_language/zh.js'><\/script>");
         }
         else if (Number(language) == 0) {
             document.write("<script src='../../Language/sys_language/en.js'><\/script>");
         }
   </script>
    <style type="text/css">   
       #head
        {
        
        }
        
               
        .fm
        {
            clear: both;
            position: relative;
            z-index: 297;
        }
        
        .s_ipt_wr
        {
            width: 380px;
            height: 30px;
            display: inline-block;
            margin-right: 5px;
            background-position: 0 -96px;
            border: 1px solid #b6b6b6;
            border-color: #7b7b7b #b6b6b6 #b6b6b6 #7b7b7b;
            vertical-align: top;
        }
        
        .s_ipt
        {
            width: 370px;
            height: 22px;
            font: 16px/22px arial;
            margin: 5px 0 0 7px;
            padding: 0;
            background: #fff;
            border: 0;
            outline: 0;
            -webkit-appearance: none;
        }
        #dialog_id .datagrid-body td, #dialog_id .datagrid-footer td , #dialog_id  .datagrid-header td{
        border-width: 0 0px 0px 0;
        border-style: none;
        }
          #dialog_id .datagrid-body
        {
            overflow-x:hidden;
        }
         #dialog_id .datagrid-header
        {
            display:none;
        }
        /* 去掉IE10自带的输入框XX */
        input:-ms-clear
        {
            display:none;
        }
          input::-ms-clear{display:none;}
        .bg
        {
            background-image: url(http://s1.bdstatic.com/r/www/cache/static/global/img/icons_4879d3b8.png);
            background-repeat: no-repeat;
            _background-image: url(http://s1.bdstatic.com/r/www/cache/static/global/img/icons_5a07887b.gif);
            background-repeat: no-repeat;
        }
        
        .s_btn
        {
            width: 95px;
            height: 32px;
            padding-top: 2px;
            font-size: 14px;
            padding: 0;
            background-color: #ddd;
            background-position: 0 -48px;
            border: 0;
            cursor: pointer;
        }
        
        .s_btn_wr
        {
            width: 97px;
            height: 34px;
            display: inline-block;
            background-position: -120px -48px;
            z-index: 0;
            vertical-align: top;
        }
        .t
        {
            font-weight: normal;
            font-size: medium;
            margin-bottom: 5px;
        }

        a:-webkit-any-link
        {
            color: -webkit-link;
            text-decoration: underline;
            cursor: auto;
        }
        
        .ec_desc
        {
            line-height: 19px;
            margin-bottom:3px;
        }
        
        .ec_font_small
        {
            font-size: small;
        }
        
        .ec_meta
        {
            margin-top: 1px;
            line-height: 18px;
            color: #888;
        }
        
        .ec_date, .ec_url
        {
            color: green;
        }
        
        #content_left
        {
            width: 736px;
            float: left;
            padding-left: 15px;
        }
        
        .ec_pp_top
        {
            margin-bottom: 20px;
            width: 680px;
            overflow: hidden;
        }
        
        .ec_pp_top .ec_title
        {
            width: 100%;
            overflow: hidden;
        }
        
        .ec_nowrap
        {
            white-space: nowrap;
            overflow: hidden;
        }
        
        h3
        {
            display: block;
            margin: 0;
            padding: 0;
            list-style: none;
        }
         a:link,
         a:visited  
        {
            color:Blue;
            text-decoration: none;
            
        }
         a:hover,
         a:active
        {
            color: #004988;
            text-decoration: underline;
            cursor: pointer;
        }
        
         a.GIS
        {
            color:Black;
            font-weight:bold;
            text-decoration:none;
        }
     
        #commendcontainer
        {
            padding: 10px;
            width:80%;
            margin: 15px 0;
           
            border: 1px solid #4c95c7;
            height: 30px;
           
        }
        .search_header
        {
            height: 30px;
        }
        .search_header_left
        {
            float: left;
            width: 240px;
        }
        .search_header_right
        {
            margin-left: 250px;
            padding-right: 15px;
            line-height: 28px;
        }
        ul.search_tab_li
        {
            list-style: none;
            padding: 0;
            margin: 0;
            height: 24px;
        }
        ul.search_tab_li
        {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        ul.search_tab_li li
        {
            cursor: pointer;
            float: left;
            width: 110px;
            border: 1px solid #4c95c7;
            border-bottom: none;
            text-align: center;
            background: #dbe5ee;
            line-height: 29px;
            height: 29px;
        }
        ul.search_tab_li li.current
        {
            background: #f9fcfe;
        }
        .search_list
        {
            padding: 10px;
            border: 1px solid #4c95c7;
        }
        #searchCount
        {
            color: #828080;
            text-align: right;
        }
        
   
        .search_input
        {   
            width:720px;
            height:30px;
            float: left;
           
        }
         #search_type
        {
            <%--background:#fff;--%>
            width: 70px;
            height: 15px;
            padding:7px 5px 3px;
            position: absolute;            
            top: 1px;
            left: 300px;
            color:#666666;
        }
       
    </style>   
    
     <script type="text/javascript">
         var g_pw;
         var g_proc;
         $.ajaxHandler({
             url: App_Config.TadongUrl + "/AjaxMappingHandler.aspx",
             urlType: "GetUserMenuList",
             success: function (data) {
                 if (data && data.length > 0) {
                     for (var i = 0; i < data.length; i++) {
                         if (data[i].MENU_NAME == "系统管理") {
                             $('#t_m_li1').show();
                         } else if (data[i].MENU_NAME == "非结构化数据入库") {
                             $('#t_m_li2').show();
                         } else if (data[i].MENU_NAME == "结构化数据入库") {
                             $('#t_m_li3').show();
                         } else if (data[i].MENU_NAME == "统计分析") {
                             $('#t_m_li4').show();
                         }
                     }
                 }
             }
         });


            //#region 弹出层
        //{html:'', title:'', width:100, height:90}
        function popwindows(dialogobj) {
            var dialog = {
                dialog_mask: 'dialog_bg',
                dialog_id: 'dialog_id',
                dialog_close: 'dialog_close',
                init: function () {
                    $.extend(dialog, dialogobj);
                    dialog.checkId();
                    dialog.createdialog();
                },
                checkId: function () {
                    if ($("#" + dialog.dialog_id).length > 0) {
                        $("#" + dialog.dialog_mask, "#" + dialog.dialog_id).remove();
                    }
                },
                createdialog: function () {
                    var _dialoghtml = [];
                    _dialoghtml.push('<div id="dialog_bg" style="background:#000;width:100%;height:100%;position:fixed; _position:absolute; top:0;left:0; z-index: 20000;filter:alpha(opacity=50);-moz-opacity:0.5;-khtml-opacity: 0.5;opacity: 0.5; "></div>');
                    _dialoghtml.push('<div id="' + dialog.dialog_id + '" style="background:#fff;position: absolute; z-index: 20001;border:1px solid #ccc;">');
                    _dialoghtml.push('<div style="background:#d5d5d5;height:24px;line-height:24px;padding:0 5px;"><span style="width:30px;float:right;cursor:pointer" title=' + lang.close + ' id="dialog_close">' + lang.close + '</span><span>');
                    _dialoghtml.push(dialog.title);
                    _dialoghtml.push('</span></div><div>');
                    _dialoghtml.push(dialog.html);
                    _dialoghtml.push('</div><div style="height:1px;clear:both;"></div></div>');
                    $('body').append(_dialoghtml.join(''));

                    $('#' + dialog.dialog_close).bind('click', function () {
                        dialog.close();
                    });

                    $("#" + dialog.dialog_id).css({ width: dialog.width + "px" });
                    if (dialog.height) { $("#" + dialog.dialog_id).css({ height: dialog.height + "px" }); }

                    $("#" + dialog.dialog_id).css({ left: ($(window).width() - $("#" + dialog.dialog_id).width()) / 2 + $(window).scrollLeft() + "px",
                        top: ($(window).height() - $("#" + dialog.dialog_id).height()) / 2 + $(window).scrollTop() + "px"
                    });
                },
                close: function () {
                    $("#" + dialog.dialog_mask + ",#" + dialog.dialog_id).remove();
                }
            }
            dialog.init();
            return dialog;
        }
        //加载gis页面，计算页面高度
        $(function () {
            $("#frame").height($(window).height() - $("#div1").height());
        });
        //加载右上角用户名
        var userAccount; //用户编号
        var pwd;//密码
        $.ajaxHandler({
            url: App_Config.TadongUrl + "/AjaxMappingHandler.aspx",
            urlType: "GetCurrentUser",
            success: function (data) {
                if (data) {
                    userAccount = data.USER_ACCOUNT;
                    pwd = data.USER_PWD;
                    $("#frame")[0].src="http://58.221.57.109:88/sy/index.html?userName="+userAccount+"&pwd="+pwd;

                }
            }
        });

        //注销
        $(function () {
            $("#a_exit").click(function () {

                $.ajax({
                    url: "/tadongserviceweb/Logoutauth.aspx",
                    type: 'post',
                    dataType: 'json',
                    data: { "data": $.oemCookie() },
                    success: function () {
                        $.cookieClear();
                        location.href = "/tadongweb/login.html";
                    }
                });

            });
            $("#clickGIS").click(function () {
                window.parent.window.clickGIS();

            });
            $("#clickSearch").click(function () {
                window.parent.window.clickSearch();

            });
            $("#clickSpace").click(function () {
                window.parent.window.clickSpace();

            });

            $("#a_userName").click(function () {
                //                $("#dialog_userinfo").dialog("open");
            });

            $("#btnSearch").click(function () {
                exec_iframe();
                //                $("#dialog_userinfo").dialog("open");
            });



        });

        function exec_iframe() {
            if (typeof (exec_obj) == 'undefined') {
                exec_obj = document.createElement('iframe');
                exec_obj.name = 'tmp_frame';
                exec_obj.src = 'http://58.221.57.109:88/sy/exec_b.html?msg=' + $("#txtKeyword").val();
                exec_obj.style.display = 'none';
                document.body.appendChild(exec_obj);
            } else {
                exec_obj.src = 'http://58.221.57.109:88/sy/exec_b.html?msg=' + $("#txtKeyword").val();
            }
        }

        //#endregion
  </script>
</head>
 <body scroll="no" style="font-size: 12px; padding: 0;overflow-x:hidden ; /*隐藏水平滚动条*/ 
overflow-y:hidden ; /*隐藏水平滚动条*/  margin: 0; height:100%">
    <form id="form1" runat="server">
    <div id="div1">
     <%--搜索主框架--%>
        <div id="head" style="width: 100%; height: 71px;">
         <div style="margin: 8px 0px 0px 0px; height: 63px;">
            <div style="text-align: left; width: 820px; height: 63px; clear: both;">
                <div class="sarch_logo" style="text-align: center; width: 195px; height: 56px; float: left;
                    overflow: hidden;">
                    <img src="../../weblib/skins/images/search_logo5.png" height="54" />
                </div>
                <div style="width: 615px; height: 56px; float: left; overflow: hidden; margin-bottom: 0px;">
                    <div style="height: 18px; width: 604px; margin-left: 20px; margin-bottom: 5px;">
                        <a href="#" class="search" id="clickSearch"><span style="font-size: 14px;"><%: lang.Get("Search")%></span></a>&nbsp;&nbsp;
                        <a href="#" class="space" id="clickSpace"><span style="font-size: 14px;"><%: lang.Get("Zone")%></span></a>&nbsp;&nbsp;
                        <a href="#" class="GIS" id="clickGIS"><span style="font-size: 14px;">GIS</span></a>&nbsp;&nbsp;
                        <a href="../../DataAssetsStatistics/DataAssetsStatistics.aspx" target="_blank"><span style="font-size: 14px;"><%: lang.Get("Statistical data assets")%></span></a>&nbsp;&nbsp;
                       
                    </div>
                    <div class="search_input;" style="position: relative">
                        <span class="s_ipt_wr">
                            <asp:TextBox runat="Server" CssClass="s_ipt" ID="txtKeyword"></asp:TextBox>
                        </span>

                        <%--<span class="bg s_btn_wr" style="margin-left: 12px;"> 123</span>--%><input  type="button" id="btnSearch" class="bg s_btn" value="<%: lang.Get("Search") %>" />
                            <%--<asp:Button runat="Server" ID="btnSearch" CssClass="bg s_btn" Text="搜 索"  />--%>
                       <%-- </span><span class="bg s_btn_wr" style="margin-left: 12px;">
                            <asp:Button runat="Server" ID="btnTeamSearch" CssClass="bg s_btn" Text="课题组" />
                         --%>
                        <input type="hidden" id="targetValue" name="targetValue" runat="server" />
                        <input type="hidden" id="bizValue" name="bizValue" runat="server" />
                        <div id="search_type" style="clear: left">
                            <span onclick="searchtype(0,'txtKeyword');" style="cursor: pointer;"><%: lang.Get("Object")%></span>｜<span
                                onclick="searchtype(1,'txtKeyword');" style="cursor: pointer;"><%: lang.Get("Business")%></span>
                        </div>
                    </div>
                </div>
            </div>
             
    </div>
    </div>
    
    </div>
    <iframe name="myframe" id="frame" src="" scrolling="no" width="100%" height="100%" style="border:0px;"></iframe>
    </form>
</body>
</html>
